﻿using System;
using System.Collections;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using BLL;
using MOD;

namespace MapServer.Adhs
{
    /// <summary>
    /// $codebehindclassname$ 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class GetOther : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            String sReturnValue = String.Empty;
            if (context.Request["userId"] != null && context.Request["customerId"] != null)
            {
                sReturnValue = GetOtherList(Convert.ToInt64(context.Request["userId"]), Convert.ToInt64(context.Request["customerId"]));
            }
            
            context.Response.Write(sReturnValue);
        }
        private String GetOtherList(Int64 iUserId, Int64 iAdid)
        {
            B_Users bUs = new B_Users();
            String sValue = "998";
            try
            {
                //DataTable dDt = new DataTable();
                //dDt = bUs.SelectUserWeiboId(iWeiboUserId, iWeiboFlag);
                //if (dDt.Rows.Count != 0)
                //{
                //    if (dDt.Rows[0]["Password"].ToString().Trim() == sPassWord)
                //    {
                //        sValue = "001";
                //    }
                //    else
                //    {
                //        sValue = "003";
                //    }
                //}
                //else
                //{
                //    sValue = "002";
                //}
            }
            catch { }
            sValue = JsonParameters.CreateJsonParameters(String.Empty, sValue);
            return sValue;
        }
       
        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}
